import { request } from '@/sheep/request';

const route = {
  path: 'brand',
  name: 'seller.admin.brand',
  component: () => import('./index.vue'),
  meta: {
    title: '品牌资质审核',
  },
};

const api = {
  list: (params) =>
    request({
      url: '/operations/admin/brandAudit',
      method: 'GET',
      params,
    }),
  audit: (id, data) =>
    request({
      url: `/operations/admin/brandAudit/audit/${id}`,
      method: 'POST',
      data,
    }),
  details: (id) =>
    request({
      url: `/operations/admin/brandAudit/${id}`,
      method: 'GET',
    }),
  goods_type:(params)=>
    request({
      url: `/seller/admin/category/select`,
      method: 'GET',
      params
    }),
};

export { route, api };